package homeworke.question17;

/**
 * Author：毕龙
 * Date: 2024/4/18 19:22
 */
public class Magicer extends Role{
    private int level;//等级  1~10

    @Override
    public int attack() {
        return level*5;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
